﻿{extend name="common/base"}
{block name="title"}会员中心页{/block}

<body>

{block name="content"}
	<!-- 会员中心 -->
	<div class="segments-page">
		<div class="container">
			<div class="product-details">
				<div class="pages-title">
					<h4>会员中心</h4>
				</div>
				<div class="contents">
					<div>
						<h5>个人管理</h5>
					</div>
				</div>
				<div class="product-list segments-page">
					<div class="container">
						<div class="content no-bb">
							<div class="product-image">
								<img src="{$Think.session.head_img}" alt="">
							</div>
							<div class="product-text"><p>{$Think.session.nickname}</p></div>
							<div class="clear"></div>
						</div>
					</div>
				</div>
				<div class="contents">
					<div>				
						<a href="{:Url('user/address')}"><button class="button" type="submit"><i class=""></i>管理我的收货地址</button></a>
						<a href="{:Url('user/editHeadimg')}"><button class="button" type="submit" style="margin-left:5px;"><i class=""></i>更换头像</button></a>
						<a href="{:Url('user/editUser')}"><button class="button" type="submit" style="margin-left:5px;"><i class=""></i>修改资料和密码</button></a>						
					</div>
				<div>
					<div class="desc-long">
						<h5>我的订单</h5>
					</div>
				</div>

				<div class="product-list segments-page">
					<div class="container">

						{foreach name="list" id="fo"}
						<div class="content no-bb">
							<p>订单号：{$fo.zhifu_id}</p>
							<p>付款时间：{$fo.dingdan_time}</p>
							<p>总计：￥{$fo.total_money}</p>
							{foreach name="fo['son']" id="fs"}
							<div class="product-image" style="clear:both">
								<a href="{:Url('product/product_details')}?id={$fs.goods_id}">
								<img src="{$fs['thumb_src'][0]}" alt="">
								</a>
							</div>
							<div class="product-text" style="float:left">
								<a href="{:Url('product/product_details')}?id={$fs.goods_id}"><p>{$fs.name}</p></a>
								<p>{$fs.guigetypeName} , 数量：{$fs.num}</p>
								<p>单价：￥{$fs.price}</p>
								{switch name="fo.fahuo_status"}
									{case value="0"}<h5>未发货</h5>{/case}
									{case value="1"}<h5>已发货</h5>{/case}
								{/switch}
								<br>
							</div>
							{/foreach}
							<div class="clear"></div>
						</div>
						{/foreach}

						<div class="l-more">
							<a href="{:Url('user/dingdan')}">
								查看更多<i class="fa fa-angle-right"></i>
							</a>
						</div>						
					</div>
				</div>

				<div class="contents">
					<div class="desc-long">
						<h5>我的优惠卷</h5>
					</div>
				</div>
				<div class="product-list segments-page">
					<div class="container">
						<div class="content no-bb">
							{volist name="coupon_list" id="val"}
							<div class="product-image">
								<img src="__STATIC__/index/images/Coupon_cx.png" alt="">
							</div>
							<div class="product-text">
								<h5>¥{$val.coupon_money}</h5>
								<p>{$val.coupon_name}</p>					
								<p>使用起始日期 : {$val.use_start_time}</p>
								<p style="margin-top:-10px;">使用结束日期 : {$val.use_end_time}</p>									
							</div></br>
							<div class="clear"></div>
							{/volist}
						</div>
						<div class="l-more">
							<a href="{:url('index/user/mycoupon')}">
								查看更多<i class="fa fa-angle-right"></i>
							</a>
						</div>
					</div>
				</div>

			</div>
		</div>
	</div>
	
	<!-- 会员中心结束 -->
{/block}